package com.feijiang.mapper;

import com.feijiang.entity.ExpeStep;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2021-12-28
 */
public interface ExpeStepMapper extends BaseMapper<ExpeStep> {

  @Select("select * from tb_expe_step limit #{pageNum}, #{pageSize}")
  List<ExpeStep> selectByPage(@Param("pageSize") int pageSize, @Param("pageNum") int pageNum);

  @Delete("delete from tb_expe_step where expe_id = #{expeId}")
  int deleteByExprId(int expeId);
}
